﻿@model GameSchool.Models.RegisterModel

@{
    ViewBag.Title = "Register";
}


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/Content/css/forms.css" />
@using (Html.BeginForm()) {
    
   <fieldset>
            <legend>Stofna notanda:</legend>
    
        <section class="one-half last">
       
                @Html.HiddenFor(m => m.UserProfile.userID)

               <div class="editor-label">
                <h2>Fullt nafn:</h2>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserProfile.Name)
                @Html.ValidationMessageFor(m => m.UserProfile.Name)
            </div>
                        <div class="editor-label">
                 <h2>Kennitala:</h2>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserProfile.SSN)
                @Html.ValidationMessageFor(m => m.UserProfile.SSN)
            </div>

                        <div class="editor-label">
                 <h2>Heimilisfang:</h2>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserProfile.Address)
                @Html.ValidationMessageFor(m => m.UserProfile.Address)
            </div>

                        <div class="editor-label">
                 <h2>Farsími:</h2>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserProfile.Mobile)
                @Html.ValidationMessageFor(m => m.UserProfile.Mobile)
            </div>
          </section>  

          <section class="one-half">
        

            <div class="editor-label">
                <h2>Notandanafn:</h2>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                 <h2>Tölvupóstur:</h2>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <div class="editor-label">
                 <h2>Lykilorð:</h2>
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                 <h2>Staðfesta lykilorð:</h2>
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

             <section class="buttonfield"> 
        <section class="one-third last">
                <input type="submit" value="Vista" class="sendbutton" name="sendbutton" /> 
             </section>  
             
        <section class="one-third">       
                 <a href="@Url.Action("Index", "Home")"><button class="backbutton">Hætta við</button></a>
             </section>
        </section>
             <div class="validation-message">
                <p>
                   @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
                </p>
            </div>
       
        
         </section>

          </fieldset>  
    
       
    
}
